Micron Document

Channel
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
A channel is a bidirectional messaging layer on top of a link for reliable delivery of typed data.

It is similar to sending packets except that it provides automatic retries, and messages are structured and can be sent in either direction of the link (no client/server).

Contents

Usage

Usage

With RNS:

channel = link.get_channel()
channel.register_message_type(Message)
channel.add_message_handler(handler)
channel.send(Message(...))

For a more comprehensive use case, see the Channel example in the manual.

See also

Buffer

Reticulum concepts
Channel